﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Maticsoft.Web.Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>动软卓越首页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
   
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="NewsId" DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="NewsId" HeaderText="NewsId" InsertVisible="False" 
                    ReadOnly="True" SortExpression="NewsId" />
                <asp:BoundField DataField="NewsTitle" HeaderText="NewsTitle" 
                    SortExpression="NewsTitle" />
                <asp:BoundField DataField="NewsContent" HeaderText="NewsContent" 
                    SortExpression="NewsContent" />
                <asp:BoundField DataField="NewsAuthor" HeaderText="NewsAuthor" 
                    SortExpression="NewsAuthor" />
                <asp:BoundField DataField="NewsCreateTime" HeaderText="NewsCreateTime" 
                    SortExpression="NewsCreateTime" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:LightErpConnectionString2 %>" 
            SelectCommand="SELECT * FROM [NewsInfo]"></asp:SqlDataSource>
   
    </div>
    </form>
</body>
</html>
